package com.sth.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sth.entity.Ranking;
import com.sth.mapper.RankingMapper;
import com.sth.service.RankingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 排名 服务实现类
 * </p>
 *
 * @author sith
 * @since 2024-07-11
 */
@Service
public class RankingServiceImpl extends ServiceImpl<RankingMapper, Ranking> implements RankingService {

    @Autowired
    private RankingMapper rankingMapper;

    @Override
    public IPage<Ranking> selectPage(Page<Ranking> pageParam, Ranking ranking) {
        return rankingMapper.selectMyPage(pageParam, ranking);
    }

    @Override
    public List<Ranking> getList() {
        return rankingMapper.getList();
    }

    @Override
    public List<Ranking> getDetailList() {
        return rankingMapper.getDetailList();
    }
}
